package com.yuandengta.yomall.member.feign;

import com.yuandengta.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * yomall-coupon 远程服务接口 {@link CouponFeignService}
 *
 * @author Kevin
 * @email: 178676392@qq.com
 */
@FeignClient("yomall-coupon")
public interface CouponFeignService {

    /**
     * 调用 yomall-coupon 远程服务的接口
     * 直接拷贝 yomall-coupon 服务上的方法签名
     */
    @RequestMapping("/coupon/coupon/info/{id}")
    public R info(@PathVariable("id") Long id);
}
